﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WarehouseManagement.Domain.DTO.OutvoundRequests
{
    /// <summary>
    /// 出库申请反填
    /// </summary>
    public class OutboundRequestSetDto
    {
        public int OutboundRequestId { get; set; }

        /// <summary>
        /// 人员档案id
        /// </summary>
        public int? ManpowerId { get; set; }
        /// <summary>
        /// 人员档案姓名
        /// </summary>
        public string? ManpowerName { get; set; }
        /// <summary>
        /// 出库编号
        /// </summary>
        public string? OutboundNumber { get; set; }

        /// <summary>
        /// 申请人员
        /// </summary>
        public string? ORapplicationPeople { get; set; }

        /// <summary>
        /// 申请时间
        /// </summary>
        public string? ORapplicationDate { get; set; }

        /// <summary>
        /// 出库类别
        /// </summary>
        public string? OROutType { get; set; }

        /// <summary>
        /// 收货人
        /// </summary>
        public string? ORConsignee { get; set; }

        /// <summary>
        /// 手机号码
        /// </summary>
        public string? ORPhone { get; set; }

        /// <summary>
        /// 省id
        /// </summary>
        public int? ProvinceId { get; set; }

        /// <summary>
        /// 市id
        /// </summary>
        public int? CityId { get; set; }

        /// <summary>
        /// 详细地址
        /// </summary>
        public string? ORAddress { get; set; }

        /// <summary>
        /// 总金额合计
        /// </summary>
        public decimal? ORTotalAmount { get; set; }

        /// <summary>
        /// 申请出库总数
        /// </summary>
        public int? OROutNum { get; set; }
        public int? ORIsState { get; set; }
        /// <summary>
        /// 添加人姓名
        /// </summary>
        public string? AddName { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? AddTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 删除人姓名
        /// </summary>
        public string? DelName { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DelTime { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool? IsDel { get; set; } = false;
        /// <summary>
        /// 公司id
        /// </summary>
        public string? Office_Id { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        public int? User_Id { get; set; }
        public List<OrpCreateDtos> oroDto { get; set; }
    }
    public class OrpCreateDtos
    {
        public int OutboundRProductId { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        public int? ProductId { get; set; }
        public string? pName { get; set; }
        public string? pNumber { get; set; }

        /// <summary>
        /// 出库编号
        /// </summary>
        public string? OutboundNumber { get; set; }

        /// <summary>
        /// 申请出库数量
        /// </summary>
        public int? ORQuantityNum { get; set; }
        /// <summary>
        /// 实际出库数量
        /// </summary>
        public int? OUTnum { get; set; }
        public decimal? ORQPrice { get; set; }
        /// <summary>
        /// 添加人姓名
        /// </summary>
        public string? AddName { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? AddTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 删除人姓名
        /// </summary>
        public string? DelName { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DelTime { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool? IsDel { get; set; } = false;
        /// <summary>
        /// 公司id
        /// </summary>
        public string? Office_Id { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        public int? User_Id { get; set; }
    }
}
